<?php /* Smarty version Smarty-3.1.13, created on 2013-06-17 09:57:42
         compiled from "/var/www/html/insite/templates/en/user_group/create.tpl" */ ?>
<?php /*%%SmartyHeaderCode:38715013951bb470b8abbb3-00679765%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '34599cd208598339f1434d669d92667badac3ea0' => 
    array (
      0 => '/var/www/html/insite/templates/en/user_group/create.tpl',
      1 => 1371365927,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '38715013951bb470b8abbb3-00679765',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51bb470b965752_90978138',
  'variables' => 
  array (
    'msg' => 0,
    'link_return' => 0,
    'action' => 0,
    'name' => 0,
    'urlloaduser' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51bb470b965752_90978138')) {function content_51bb470b965752_90978138($_smarty_tpl) {?>  
  <script>
  var myusers = new Array();
  function checkAll(chk)
  {
    frm = document.frmAdmin;
    total = frm.usertotal.value;				 
    if(chk.checked) {
     for(i = 0; i < total; i++) {
       id = document.getElementById('chkUser' + i);
       id.checked = true;
     }		
    } else {
     for(i = 0; i < total; i++) {
       id = document.getElementById('chkUser' + i);
       id.checked = false;
     }		
    }
  }
  function addUsers(o)
  {
    var v, i, j, frm;
    frm = document.frmAdmin;
    v = o.value;
    if(o.checked) {
      myusers[myusers.length] = v ;
    } else {
      var tmp = new Array();
      j=0;
      for(i=0;i<myusers.length;i++) {
        if(myusers[i] != v) {
          tmp[j] = myusers[i];
          j++;
        }
      }
      myusers = new Array();
      for(i=0;i<tmp.length;i++) {
        myusers[i] = tmp[i];
      }		
    }
    var st;
    st = '';
    for(i=0;i<myusers.length;i++) {
      st = st + myusers[i] + ';';
    }
    frm.list_id.value = st;	
  
  }
  ////////////viewProduct
  function viewUsers(p)
  {
    var frm, btn;
    frm = document.frmAdmin;
    $("#loadUsers").html('<h1>Loading...</h1>');
    $.get(frm.urlloaduser.value, { p: p, type_id:frm.type_id.value, email:frm.s_email.value },
     function(data){
       $("#loadUsers").html(data);
     });	
    
    return false;	
  }
  </script>
  <style>
  form {
    margin: 0;
    padding: 0;
  }
  </style>
  

<!-- Content Area -->

<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: ADD GROUP</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> <?php if ($_smarty_tpl->tpl_vars['msg']->value){?>
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li><?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
</li>
        </ul>
      </dd>
    </dl>
    <?php }?> </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list" id="actionbar">
        <ul>
          <li  id="actionbar-apply"> <a href="#" onclick="javascript:frmAdmin.submit();" class="actionbar"> <span class="icon-32-apply"> </span> Save </a> </li>
          <li  id="actionbar-cancel"> <a href="<?php echo $_smarty_tpl->tpl_vars['link_return']->value;?>
" class="actionbar"> <span class="icon-32-cancel"> </span> Close </a> </li>
        </ul>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  
  <!-- Beginning of Actual Content -->
  <div id="element-box">
    <p id="skiptargetholder"><a id="skiptarget" class="skip" tabindex="-1"></a></p>
    <form name="frmAdmin" action="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" method="post">
    <table class="admintable">
      <tr>
        <td width="30%" >Name:</td>
        <td ><input type="text" name="name" maxlength="100" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
" size="30"></td>
      </tr>
      <tr>
        <td>Published:</td>
        <td ><input type="radio" id="publish1" name="publish" value="1" checked="checked"/><label for="publish1">Yes</label><input type="radio" id="publish0" name="publish" value="0"/><label for="publish0">No</label></td>
      </tr>

    </table>
      <table class="admintable" width="100%" >
        <tr>
          <td colspan="2">
          <div class="filter-search">
            <label class="filter-search-lbl" for="filter_search">Email:</label>
            <input type="text" name="s_email" value=""  title="email" />
            <button type="button" onclick="javascript:viewUsers(0);">Search</button>
          </div>          
          <fieldset class="adminform" width="100%" id="textfieldset">          
            <legend>List users</legend>
              <div id="loadUsers"></div>                  
          </fieldset></td>
        </tr>
        <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['urlloaduser']->value;?>
" name="urlloaduser" />
        
        <input type="hidden" value="" name="type_id" />
      </table>
    </form>
    <div class="clr"></div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
  
  <script>
    viewUsers(0);
  </script>
  
<!-- end of content --><?php }} ?>